package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 主页控制层
 *
 * @author zhangkaiqi
 * @date 2021/8/10 9:20:57
 */
@RequestMapping("/index")
@RestController
public class IndexController {
    @GetMapping
    public String index() {
        return "您已来到主页";
    }
}
